using System;
using System.Collections;
using System.Collections.Generic;

using BVMB.DataLayer.Base;

namespace BVMB.DataLayer.BusinessObjects
{
    public partial class Ctchuyenbay : BusinessBase<int>
    {
        #region Declarations

		private int? _thoiGianDung = null;
		private string _ghiChu = null;
		
		private ChuyenBay _chuyenBay = null;
		private SanBay _sanBay = null;
		
		
		#endregion

        #region Constructors

        public Ctchuyenbay() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_thoiGianDung);
			sb.Append(_ghiChu);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual int? ThoiGianDung
        {
            get { return _thoiGianDung; }
			set
			{
				OnThoiGianDungChanging();
				_thoiGianDung = value;
				OnThoiGianDungChanged();
			}
        }
		partial void OnThoiGianDungChanging();
		partial void OnThoiGianDungChanged();
		
		public virtual string GhiChu
        {
            get { return _ghiChu; }
			set
			{
				OnGhiChuChanging();
				_ghiChu = value;
				OnGhiChuChanged();
			}
        }
		partial void OnGhiChuChanging();
		partial void OnGhiChuChanged();
		
		public virtual ChuyenBay ChuyenBay
        {
            get { return _chuyenBay; }
			set
			{
				OnChuyenBayChanging();
				_chuyenBay = value;
				OnChuyenBayChanged();
			}
        }
		partial void OnChuyenBayChanging();
		partial void OnChuyenBayChanged();
		
		public virtual SanBay SanBay
        {
            get { return _sanBay; }
			set
			{
				OnSanBayChanging();
				_sanBay = value;
				OnSanBayChanged();
			}
        }
		partial void OnSanBayChanging();
		partial void OnSanBayChanged();
		
        #endregion
    }
}
